<template>
    <div v-html="a"></div>
</template>
<script>
import { ref } from "vue"
export default {
    name: 'App',
    setup() {
        const a = ref("")
        const table = () => {
            let b = ''
            for (let j = 1; j <= 9; j++) {
                for (let i = 1; i <= j; i++) {
                  b += `${i}*${j}=${i * j} `;
                }
                b+="<br>";
            }
            a.value = b
        }
        table();
        return { table ,a }
    }
}
</script>
